package com.atguigu08._interface.ex1;

public class Test {
    public static void main(String[] args) {
        Eatable[] eatables=new Eatable[3];
        Chinese chinese=new Chinese();
        American american=new American();
        India india=new India();
        eatables[0]=chinese;
        eatables[1]=american;
        eatables[2]=india;
        for (int i = 0; i <eatables.length ; i++) {
            eatables[i].eat();
        }
    }
}
